<?php
/**
 * Tongji 插件
 * @author 后盾向军 <houdunwangxj@gmail.com>
 */

class AdminController extends AddonController {

    public function index() {
    	$tongji = M('tongji')->order('time desc')->all();
    	$this->assign('tongji',$tongji);
        $this->display();
    }

       public function del() {
    	$id = Q('id');
    	$where = array('id'=>array('in',$id));
    	$info = M('tongji')->where($where)->del();
    	if($info) {
    		go(U('index',array('g'=>'Addon'),''));
    	}
    }

}